using Microsoft.EntityFrameworkCore;
using mvcdemo07.Models;

namespace mvcdemo07.Db
{
    public class Dbsql:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(@"server=.;database=mvcdemo07;uid=sa;pwd=123456");
        }

        public DbSet<Student> Students{get;set;}
        public DbSet<GradeClass> GradeClasses{get;set;}
    }
}